package top.wshape1.shiziapi.project.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 
 * @TableName t_project_api_tag
 */
@TableName(value ="t_project_api_tag")
@Data
@JsonInclude
public class ApiTag implements Serializable {
    /**
     * tag主键
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * API文档主键ID
     */
    private Long apiId;

    /**
     * 标签名字
     */
    private String name;

    /**
     * 标签颜色
     */
    private String color;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}